<template>
    <div id="app">
        <div id="cover">12</div>
        <Header></Header>
          <router-link to="/app/123">app</router-link>
          <router-link to="/login">login</router-link>
          <transition name="fade">
            <router-view/>
          </transition>

<!--        <Todo></Todo>-->
        <Footer></Footer>
    </div>
</template>

<script>
import Header from './layout/header.vue'
import Footer from './layout/footer.jsx'
import Todo from './views/todo/todo.vue'
export default {
  components: {
    Header,
    Footer,
    Todo
  },
  mounted() {
    console.log(this.$route)
  }
}
</script>

<style lang="stylus" scoped>
    #app {
        position absolute
        left 0
        right 0
        top 0
        bottom 0
    }

    #cover {
        position absolute
        left 0
        right 0
        top 0
        bottom 0
        background-color #555
        opacity 0.5
        z-index -1
    }
</style>
